// 把components中的所组件都进行全局化注册
// 通过插件的方式
import SvgIcon from './SvgIcon/index.vue'
import ZyCard from './ZyCard/index.vue'
import ZyButton from './ZyButton/index.vue'
import ZyDrawer from './ZyDrawer/index.vue'
import ZyDropdown from './ZyDropdown/index.vue'

export const componentPlugin = {
  install(app) {
    // app.component('组件名字'，组件配置对象)
    app.component('SvgIcon', SvgIcon)
    app.component('ZyCard', ZyCard)
    app.component('ZyButton', ZyButton)
    app.component('ZyDrawer', ZyDrawer)
    app.component('ZyDropdown', ZyDropdown)
  }
}
